package com.atguigu.educms.controller;


import com.atguigu.commonutils.R;
import com.atguigu.educms.service.CrmBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 首页banner表 前端控制器
 * </p>
 *
 * @author lhl
 * @since 2022-07-08
 */
@RestController
@RequestMapping("/educms/frontBanner")
@CrossOrigin
public class CrmBannerFrontController {
    @Autowired
    CrmBannerService crmBannerService;
    @GetMapping("getBannerAll")
    public R getBannerAll(){
        return R.ok().data("list",crmBannerService.getAllBanner());
    }

}

